<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<script type="text/javascript" src="/js/clipboard/jquery.zclip.min.js"></script>

<div class="alert alert-info">
  <strong>提示：</strong>
  	输入搜索关键词，点搜索可以搜索出【你是不是要找】栏目中的所有关键词，鼠标单击关键词可以复制到粘贴板。
</div>
<s:form action="/relativeword" theme="simple">
<div class="form-header">
	<s:textfield name="param.anchor" placeHolder='关键词' /><s:submit value="搜索" cssClass="btn" onclick="return checkForm();" /><input id="btn_copyall" type="button" class="btn btn-primary" value="复制全部数据"  />
</div>
</s:form>
<div class="links">
	<ul>
		<s:iterator  value="links"  >
			<li><a href="<s:property value="url"   />"><s:property value="anchor"   /></a></li>
		</s:iterator>
	</ul>
</div>


<script type="text/javascript">
	function checkForm()
	{
		var valid = true;
		var $anchor = $("input[name='param.anchor']");
		if($anchor.val().trim() == "")
		{
			$anchor.focus();
			valid = false;
		}
		
		return valid;
	}
</script>
